package cn.webrx;

public class Suan2 {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
        if (args.length == 2) {
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
        }
        if (a % b == 0) {
            //System.out.println();
            System.out.printf("%d ÷ %d = %d%n", a, b, a / b);
            System.out.println(a + " ÷ " + b + " = " + (a/b));
        } else {
            System.out.printf("%d ÷ %d = %d ... %d%n", a, b, a / b, a % b);
        }
    }
}
